#
# Be sure to run `pod lib lint soapp.podspec' to ensure this is a
# valid spec before submitting.
#
# Any lines starting with a # are optional, but their use is encouraged
# To learn more about a Podspec see http://guides.cocoapods.org/syntax/podspec.html
#

Pod::Spec.new do |s|
  s.name             = 'soapp'
  s.version          = '0.1.0'
  s.summary          = 'A short description of soapp.'

# This description is used to generate tags and improve search results.
#   * Think: What does it do? Why did you write it? What is the focus?
#   * Try to keep it short, snappy and to the point.
#   * Write the description between the DESC delimiters below.
#   * Finally, don't worry about the indent, CocoaPods strips it!

  s.description      = <<-DESC
TODO: Add long description of the pod here.
                       DESC

  s.homepage         = 'https://github.com/zhuxietong/soapp'
  # s.screenshots     = 'www.example.com/screenshots_1', 'www.example.com/screenshots_2'
  s.license          = { :type => 'MIT', :file => 'LICENSE' }
  s.author           = { 'zhuxietong' => 'zhuxietong@me.com' }
  s.source           = { :git => 'https://gitee.com/cocoa.me/soapp.git', :tag => s.version.to_s }
  # s.social_media_url = 'https://twitter.com/<TWITTER_USERNAME>'
  s.ios.deployment_target = '10.0'
  s.pod_target_xcconfig = { 'SWIFT_VERSION' => '5.1' }
  s.swift_versions = '5.1'

  # Subspecs
  s.subspec 'Regex' do |regex|
      regex.name = 'Regex'
      regex.source_files = [
      'soapp/Classes/Regex/**.{swift,h,m}',
      'soapp/Classes/Regex/**/*.{swift,h,m}',
      ]
  end

  s.subspec 'Base' do |base|
    base.name = 'Base'
    base.source_files = [
      'soapp/Classes/Base/**/*.{swift,h,m}',
      'soapp/Classes/Base/**/**/*.{swift,h,m}',
      'soapp/Classes/Base/**/**/**/*.{swift,h,m}',
      'soapp/Classes/Base/**/**/**/**/*.{swift,h,m}',
      'soapp/Classes/Base/**/**/**/**/**/*.{swift,h,m}'
    ]
    #base.dependency 'STRegex', '~> 1.1'
    base.dependency 'soapp/Regex'
    base.dependency 'SwiftyJSON'
    base.dependency 'Eelay'
    base.dependency 'XLPagerTabStrip','~> 9.0'
    base.dependency 'RxSwift','~>5.0'

  end
  
  s.subspec 'Oc' do |oc|
    oc.name = 'Oc'
    oc.source_files = [
      'soapp/Classes/Oc/**/*.{swift,h,m}',
      'soapp/Classes/Oc/**/**/*.{swift,h,m}',
      'soapp/Classes/Oc/**/**/**/*.{swift,h,m}',
      'soapp/Classes/Oc/**/**/**/**/*.{swift,h,m}',
      'soapp/Classes/Oc/**/**/**/**/**/*.{swift,h,m}'
    ]
  end

  s.subspec 'Core' do |core|
  
    core.name = 'Core'
    core.source_files = [
      'soapp/Classes/Core/**/*.{swift,h,m}',
      'soapp/Classes/Core/**/**/*.{swift,h,m}',
      'soapp/Classes/Core/**/**/**/*.{swift,h,m}',
      'soapp/Classes/Core/**/**/**/**/*.{swift,h,m}',
      'soapp/Classes/Core/**/**/**/**/**/*.{swift,h,m}'
    ]
    core.dependency 'soapp/Base'
    core.dependency 'JoLoading'
    core.dependency 'Kingfisher'
    core.dependency 'Alamofire'
    core.dependency 'MJRefresh'
    core.dependency 'MBProgressHUD'

    core.resource_bundles  = {
        'soappAsset' => ['soapp/Assets/soappAsset.xcassets']
    }
   
    
    
    
  end
  
  s.subspec 'Sqlite3' do |sql|
    sql.name = 'Sqlite3'
    sql.source_files = [
      'soapp/Classes/Sqlite3/*.{swift,h,m}',
    ]
    sql.libraries = 'sqlite3'
    # sql.dependency 'sqlite3'
    # sql.resources  = ["soapp/Classes/Sqlite3/user.db"]
  end  
  
  s.subspec 'ASSupport' do |as|
    as.name = 'ASSupport'
    as.source_files = [
      'soapp/Classes/ASSupport/*.{swift,h,m}',
      'soapp/Classes/ASSupport/**/*.{swift,h,m}',
      'soapp/Classes/ASSupport/**/**/*.{swift,h,m}',
    ]
    as.dependency 'soapp/Core'
    as.dependency 'Texture/Core'
#    as.dependency 'TPKeyboardAvoiding'
#    as.dependency 'TPKeyboardAvoidingSwift'
  end


  
  s.subspec 'EeTopStyle' do |topStyle|
    topStyle.name = 'EeTopStyle'
    topStyle.source_files = [
      'soapp/Classes/EeTopStyle/*.{swift,h,m}',
    ]
  end
  
  s.subspec 'RTNavigation' do |rtnav|
      rtnav.name = 'RTNavigation'
      rtnav.source_files = [
      'soapp/Classes/EeTopStyle/RTNavigation/*.{swift,h,m}',
      ]
      rtnav.dependency 'RTRootNavigationController'
  end
  
  

  s.subspec 'Auth' do |auth|
    auth.name = 'Auth'
    auth.source_files = [
      'soapp/Classes/Auth/*.{swift,h,m}',
    ]
    auth.dependency 'soapp/Core'
    auth.dependency 'soapp/Sqlite3'
    auth.dependency 'soapp/EeTopStyle'

    auth.resources  = ["soapp/Classes/Auth/user.db"]
  end
  
  s.subspec 'AuthDemo' do |authdemo|
    authdemo.name = 'AuthDemo'
    authdemo.source_files = [
      'soapp/Classes/AuthDemo/*.{swift,h,m}',
    ]

    authdemo.dependency 'soapp/Auth'
    authdemo.dependency 'soapp/Form'
    authdemo.resources  = ["soapp/Classes/AuthDemo/Login.xcassets"]
  end

s.subspec 'Location' do |location|
    location.name = 'Location'
    location.source_files = [
    'soapp/Classes/Location/*.{swift,h,m}',
    'soapp/Classes/Location/**/*.{swift,h,m}',
    'soapp/Classes/Location/**/**/*.{swift,h,m}',
    ]
    location.dependency 'soapp/Core'
    location.resources  = ["soapp/Classes/Location/PlacePicker/china_regions.db"]
    location.resource_bundles  = {
        'soappAddress' => ['soapp/Classes/Location/**/*.{json,xml}','soapp/Classes/Location/*.{json,xml}']
    }
    
end
  s.subspec 'Form' do |form|
    form.name = 'Form'
    form.source_files = [
      'soapp/Classes/Form/*',
      'soapp/Classes/Form/**/*',
      'soapp/Classes/Form/**/**/*',
      'soapp/Classes/Form/**/**/**/*',
      'soapp/Classes/Form/**/**/**/**/*',
    ]
    form.dependency 'soapp/Core'
    form.dependency 'soapp/Location'

  end
  


  s.subspec 'DropMenu' do |menu|
    menu.name = 'DropMenu'
    menu.source_files = [
      'soapp/Classes/DropMenu/*.{swift,h,m}',
    ]

    menu.dependency 'soapp/Base'
    menu.dependency 'soapp/Core'
    # menu.resources  = ["soapp/Classes/AuthDemo/Login.xcassets"]
  end
  
  s.subspec 'SearchFilter' do |app|
      app.name = 'SearchFilter'
      app.source_files= [
      'soapp/Classes/SearchFilter/*.{swift,h,m}',
      'soapp/Classes/SearchFilter/**/*.{swift,h,m}',
      'soapp/Classes/SearchFilter/**/**/*.{swift,h,m}',
      ]
      app.dependency 'soapp/Core'
      app.dependency 'soapp/DropMenu'


      
      # menu.resources  = ["soapp/Classes/AuthDemo/Login.xcassets"]
  end
  
  s.subspec 'Chinese' do |app|
      app.name = 'Chinese'
      app.source_files = [
      'soapp/Classes/Task/Chinese/*.{swift,h,m}',
      ]
      app.dependency 'soapp/Base'
      # menu.resources  = ["soapp/Classes/AuthDemo/Login.xcassets"]
  end


s.subspec 'PhotoBrowser' do |app|
    app.name = 'PhotoBrowser'
    app.source_files = [
    'soapp/Classes/Extension/PhotoBrowser/*.{swift,h,m}',
    ]
    app.dependency 'JXPhotoBrowser'
    app.dependency 'soapp/ASSupport'

    # menu.resources  = ["soapp/Classes/AuthDemo/Login.xcassets"]
end

s.subspec 'LBXScan' do |app|
    app.name = 'LBXScan'
    app.source_files = [
    'soapp/Classes/Extension/LBXScan/*.{swift,h,m}',
    ]
    app.dependency 'soapp/Base'
    # menu.resources  = ["soapp/Classes/AuthDemo/Login.xcassets"]
end

s.subspec 'Calendar' do |app|
    app.name = 'Calendar'
    app.source_files = [
    'soapp/Classes/Extension/Calendar/*.{swift,h,m}',
    ]
    app.dependency 'soapp/Base'
    app.dependency 'JTAppleCalendar'
    
    
    # menu.resources  = ["soapp/Classes/AuthDemo/Login.xcassets"]
end

s.subspec 'RTImage' do |app|
    app.name = 'RTImage'
    app.source_files= [
    'soapp/Classes/Extension/RTImage/*.{swift,h,m}',
    ]
    # menu.resources  = ["soapp/Classes/AuthDemo/Login.xcassets"]
end

s.subspec 'MEDatePicker' do |app|
    app.name = 'MEDatePicker'
    app.source_files= [
    'soapp/Classes/Extension/MEDatePicker/*.{swift,h,m}',
    ]
    # menu.resources  = ["soapp/Classes/AuthDemo/Login.xcassets"]
end

s.subspec 'StarView' do |app|
    app.name = 'StarView'
    app.source_files= [
    'soapp/Classes/Extension/StarView/*.{swift,h,m}',
    ]
    # menu.resources  = ["soapp/Classes/AuthDemo/Login.xcassets"]
end

s.subspec 'MediaAssets' do |app|
    app.name = 'MediaAssets'
    app.source_files= [
    'soapp/Classes/Extension/MediaAssets/*.{swift,h,m}',
    ]
    # menu.resources  = ["soapp/Classes/AuthDemo/Login.xcassets"]
end

s.subspec 'XLPagerTabStrip' do |app|
    app.name = 'XLPagerTabStrip'
    app.source_files= [
    'soapp/Classes/Extension/XLPagerTabStrip/*.{swift,h,m}',
    ]
    app.dependency 'soapp/Core'
    app.dependency 'XLPagerTabStrip','~> 9.0'
    
    # app.dependency 'XLPagerTabStrip'
    # menu.resources  = ["soapp/Classes/AuthDemo/Login.xcassets"]
end

s.subspec 'MLLable' do |app|
    app.name = 'MLLable'
    app.source_files= [
    'soapp/Classes/Extension/MLLable/*.{swift,h,m}',
    'soapp/Classes/Extension/MLLable/**/*.{swift,h,m}',
    'soapp/Classes/Extension/MLLable/**/**/*.{swift,h,m}',
    ]
    
    # menu.resources  = ["soapp/Classes/AuthDemo/Login.xcassets"]
end


s.subspec 'MsgMark' do |app|
    app.name = 'MsgMark'
    app.source_files= [
    'soapp/Classes/MsgMark/*.{swift,h,m}',
    'soapp/Classes/MsgMark/**/*.{swift,h,m}',
    'soapp/Classes/MsgMark/**/**/*.{swift,h,m}',
    ]
    app.resources  = ["soapp/Classes/MsgMark/sysnum.db","soapp/Classes/MsgMark/mark_data.db"]

end

s.subspec 'JPush' do |app|
    app.name = 'JPush'
    app.source_files = [
    'soapp/Classes/JPush/*.{swift,h,m}',
    ]
    app.dependency 'soapp/Base'
    app.dependency 'JPush'
    
    # menu.resources  = ["soapp/Classes/AuthDemo/Login.xcassets"]
end


s.subspec 'Jukebox' do |app|
    app.name = 'Jukebox'
    app.source_files = [
    'soapp/Classes/Extension/Jukebox/*.{swift,h,m}',
    'soapp/Classes/Extension/Jukebox/**/*.{swift,h,m}',
    'soapp/Classes/Extension/Jukebox/**/**/*.{swift,h,m}',
    ]
    app.dependency 'soapp/Base'
    app.resources  = ["soapp/Classes/Extension/Jukebox/AudioPlayer/EeAudio.xcassets"]
end
s.subspec 'ViewPager' do |app|
    app.name = 'ViewPager'
    app.source_files = [
    'soapp/Classes/Extension/ViewPager/*.{swift,h,m}',
    'soapp/Classes/Extension/ViewPager/**/*.{swift,h,m}',
    'soapp/Classes/Extension/ViewPager/**/**/*.{swift,h,m}',
    ]
    app.dependency 'soapp/Base'
end


s.subspec 'Alert' do |app|
    app.name = 'Alert'
    app.source_files= [
    'soapp/Classes/Alert/*.{swift,h,m}',
    'soapp/Classes/Alert/**/*.{swift,h,m}',
    'soapp/Classes/Alert/**/**/*.{swift,h,m}',
    ]
    app.dependency 'soapp/Base'
end

s.subspec 'fform' do |app|
    app.name = 'fform'
    app.source_files= [
    'soapp/Classes/fform/*.{swift,h,m}',
    'soapp/Classes/fform/**/*.{swift,h,m}',
    'soapp/Classes/fform/**/**/*.{swift,h,m}',
    ]
    app.dependency 'DateTimePicker'
    app.dependency 'TZImagePickerController'
    app.dependency 'soapp/Base'
end

s.subspec 'XLVideoPlayer' do |app|
    app.name = 'XLVideoPlayer'
    app.source_files = [
    'soapp/Classes/Extension/XLVideoPlayer/*.{swift,h,m}',
    ]
    app.dependency 'soapp/Base'
    app.resources  = ["soapp/Classes/Extension/XLVideoPlayer/Audio.xcassets"]

    #app.dependency 'EeVideoPlayer'
end

#s.subspec 'NicooPlayer' do |app|
#   app.name = 'NicooPlayer'
#    app.source_files = [
#    'soapp/Classes/Extension/NicooPlayer/*.{swift,h,m}',
#   ]
#    app.dependency 'soapp/Base'
#end

s.subspec 'AppPlugins' do |app|
    app.name = 'AppPlugins'
    app.source_files= [
    'soapp/Classes/AppPlugins/*.{swift,h,m}',
    ]
    app.dependency 'soapp/Oc'
    app.dependency 'soapp/MediaAssets'
    app.dependency 'soapp/StarView'
    app.dependency 'soapp/MEDatePicker'
    app.dependency 'soapp/RTImage'
    app.dependency 'soapp/Calendar'
    app.dependency 'soapp/PhotoBrowser'
    app.dependency 'soapp/Chinese'
    app.dependency 'soapp/XLPagerTabStrip'
#    app.dependency 'soapp/MLLable'
    app.dependency 'soapp/SearchFilter'
#    app.dependency 'soapp/XLVideoPlayer'
#    app.dependency 'soapp/Jukebox'
    app.dependency 'soapp/ASSupport'
#    app.dependency 'soapp/LBXScan'
    app.dependency 'soapp/ViewPager'
    app.dependency 'soapp/fform'
    app.dependency 'soapp/Alert'

    
    # menu.resources  = ["soapp/Classes/AuthDemo/Login.xcassets"]
end

# new----------------------------------------------------------
  
  s.default_subspec = 'Regex','Oc','Base','Core','EeTopStyle','Sqlite3','Auth','AuthDemo','Form','MsgMark','ASSupport','Location','PhotoBrowser','RTNavigation','XLPagerTabStrip'


end
